package com.dy.user.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kaoshi.common.config.Result;
import com.dy.user.User;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2024-11-18
 */
public interface IUserService extends IService<User> {

    Result login(User user);

    Object updateUser(User user, HttpServletResponse response);

    Result loginRedis(String token);

    void verification(User user) throws Exception;

    Result resetpassword(User user);

    Result passwordLogin(User user);

    Result sendSms(User user);

    Result disableUser(User user,String token);

    Result updateDisable(User user);

    Result logout(String token);

    int getUserByToken(String token);

    User getLoginUser(String satoken);

    Result getDingUser(User user);

    User getUserById(int id);

    User selectUserById(Integer id);

    Result outLogin(Integer id);
}
